# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=breeze-icons
pkgver=5.72.0
pkgrel=0
pkgdesc="Breeze icon themes"
arch="noarch !armhf" # armhf blocked by extra-cmake-modules
url="https://community.kde.org/Frameworks"
license="LGPL-3.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev"
checkdepends="bash"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/breeze-icons-$pkgver.tar.xz
	busybox-grep-q.patch
	busybox-sed-i.patch
	"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBINARY_ICONS_RESOURCE=ON
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E '(dupe|symlink)'
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="c6a42baeb391ab236cfc28f856176dbb9a435dc967adc9ab30172dbdf344f6c53380fc9f5149c3b2eac5d42d1e1b3e886d7576a908e3768b66226cb0e92e4d84  breeze-icons-5.72.0.tar.xz
5fbfe9c5bf0a01504274040d97bb3c58ae18580f9ab63ea5701149c508fccb02f6566435b355264008731a7778939f08c5de1820a24b521386e19248ae82ff96  busybox-grep-q.patch
146ea6635feaf05541ca82839fd315dfa10cb6daaf364cbe79f324451617d53f405c52fe5ed5a2abfe6d3e01109795afc3a385dce78b0cb0f78702d1b434a250  busybox-sed-i.patch"
